package com.zhuangyuan.cloud.data.model;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@Deprecated
public class MenuCategoryModel implements Serializable {

    private String code;
    private String name;
    private int level;
    private List<MenuCategoryModel> children = new ArrayList<>();

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public List<MenuCategoryModel> getChildren(){
        return children;
    }
    public void addChild(MenuCategoryModel child){
        children.add(child);
    }
}
